package source;


import gui.MenuEntrada;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author BrunoCardoso
 */
public class BD2012 {

    /**
     * @param args the command line arguments
     */
    static DatabaseHandler dbConn;

    public static void main(String[] args) {
        try {
            // TODO code application logic here
            dbConn = new DatabaseHandler();
            MenuEntrada menu = new MenuEntrada(dbConn);
            //String pessoas=dbConn.ListPessoa();
            //System.out.println(pessoas);
        } catch (SQLException ex) {
            Logger.getLogger(BD2012.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(BD2012.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(BD2012.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(BD2012.class.getName()).log(Level.SEVERE, null, ex);
        }

    }
}
